﻿@model SMECustomerWebsite.Models.ViewModels.ProductHandbook.SaleContestInfoViewModel
@*<ul id="menu_product_handbook_detail" class="nav nav-tabs bar_tabs sme-tabs" role="tablist">
        <li role="presentation" class="active">
            @Html.ActionLink(@SMECustomerWebsite.Core.Resources.Resource.ProHandbookProDetailInfoTab, "ProductDetail", "ProductHandbook", new { productid = Request.QueryString["productid"] }, null)
        </li>

        <li role="presentation" class="">
            @Html.ActionLink(@SMECustomerWebsite.Core.Resources.Resource.ProHandbookProDetailChecklistTab, "Checklist", "ProductHandbook", new { productid = Request.QueryString["productid"] }, null)
        </li>

    </ul>*@

<div class="row">
    <div class="col-md-12">
        <div class="x_panel">
            <div class="x_title">
                <div class="col-lg-8 col-md-9 col-sm-8">
                    <h2>Thông tin chương trình thi đua</h2>
                </div>
                <ul class="nav navbar-right panel_toolbox">
                    @if (Model.SaleContestInfo.HasData == 1)
                    {
                        <li>
                            <a href="/SalePerformance/SaleContestRanking?salecontest=@Request.QueryString["salecontest"]" class="btn right">Xem kết quả chương trình</a>
                        </li>

                    }
                    <li>
                        <a class="collapse-link"><i class="fa fa-chevron-up"></i></a>
                    </li>
                </ul>
                <div class="clearfix"></div>
            </div>
            <div class="x_content">
                <div class="" role="tabpanel" data-example-id="togglable-tabs">
                    <ul id="myTab" class="nav nav-tabs bar_tabs sme-tabs" role="tablist">
                        @if (Model.SaleContestInfo.GeneralInfo != null)
                        {
                            <li role="presentation" class="active">
                                <a href="#tab_content1" id="home-tab" role="tab" data-toggle="tab" aria-expanded="true">THÔNG TIN CHUNG</a>
                            </li>
                        }
                        @if (Model.SaleContestInfo.Scope != null)
                        {

                            <li role="presentation" class="">
                                <a href="#tab_content2" role="tab" id="profile-tab" data-toggle="tab" aria-expanded="false">THỂ LỆ GIẢI THƯỞNG</a>
                            </li>
                        }
                    </ul>
                    <div id="myTabContent" class="tab-content">
                        @if (Model.SaleContestInfo.GeneralInfo != null)
                        {
                            <div role="tabpanel" class="tab-pane fade active in" id="tab_content1" aria-labelledby="home-tab" style="font-size:13px; color:black;">
                                @Html.Raw(HttpUtility.HtmlDecode(Model.SaleContestInfo.GeneralInfo))
                            </div>
                        }
                        @if (Model.SaleContestInfo.Scope != null)
                        {
                            <div role="tabpanel" class="tab-pane fade" id="tab_content2" aria-labelledby="profile-tab" style="font-size:13px; color:black;">
                                @Html.Raw(HttpUtility.HtmlDecode(Model.SaleContestInfo.Scope))
                            </div>
                        }
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
